package svc

import (
	"ArticleServer/api/internal/config"
	"go.uber.org/zap"
)

type ServiceContext struct {
	Config config.Config
	Log    *zap.Logger
}

func NewServiceContext(c config.Config) *ServiceContext {
	Log := InitLogger(c.Zap)
	return &ServiceContext{
		Config: c,
		Log:    Log,
	}
}
